projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1404e24
)
applications/luci-splash: Only add splash forwarding rule for ip6tables when the...
author
Manuel Munz
<
[email protected]
>
Sat, 18 May 2013 09:35:48 +0000
(09:35 +0000)
committer
Manuel Munz
<
[email protected]
>
Sat, 18 May 2013 09:35:48 +0000
(09:35 +0000)
applications/luci-splash/root/etc/init.d/luci_splash
patch
|
blob
|
history
diff --git
a/applications/luci-splash/root/etc/init.d/luci_splash
b/applications/luci-splash/root/etc/init.d/luci_splash
index a6c636609a66db2f20481f3c7cd43df3da29430b..99f6140f18b620994aaa64692c438bb19ed1d975 100755
(executable)
--- a/
applications/luci-splash/root/etc/init.d/luci_splash
+++ b/
applications/luci-splash/root/etc/init.d/luci_splash
@@
-1,5
+1,6
@@
#!/bin/sh /etc/rc.common
+set -x
START=70
EXTRA_COMMANDS=clear_leases
LIMIT_DOWN=0
@@
-64,7
+65,7
@@
iface_add() {
ipt_log "zone_${zone}_prerouting" -i "${ifname%:*}" -s "$NETWORK/$PREFIX" -j luci_splash_prerouting -t nat
ipt_log "zone_${zone}_forward" -i "${ifname%:*}" -s "$NETWORK/$PREFIX" -j luci_splash_forwarding -t filter
- if [ "$HAS_IPV6" = 1 ]; then
+ if [ "$HAS_IPV6" = 1 ]
&& [ -n "$ip6addr" ]
; then
ipt6_log "zone_${zone}_forward" -i "${ifname%:*}" -s "$ip6addr" -j luci_splash_forwarding -t filter
fi